package cn.wh.beans.factory.config;

import cn.wh.beans.BeansException;

/**
 * @Author wanghao
 * @Date 2022-08-28 11:09
 * @Description: TODO
 */
public interface BeanPostProcessor {
    /**
     * bean 对象执行初始化方法之前 ,执行此方法
     * @param bean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object postProcessBeforeInitialization(Object bean,String beanName) throws BeansException;

    /**
     * 在bean 对象 执行初始化方法之前执行此方法
     * @param bean
     * @param beanName
     * @return
     * @throws BeansException
     */
    Object postProcessAfterInitialization(Object bean,String beanName)throws BeansException;
}
